﻿using System.Collections.Generic;
using System.Web.Mvc;
using Telerik.Web.Mvc.UI.Fluent;

namespace WebSite.ViewModels.EditViewModels.EditGridViewModels
{
    public class ClienteEnderecoEditGridViewModel : EnderecoEditGridViewModel<ClienteEnderecoViewModel>
    {
        public ClienteEnderecoEditGridViewModel(HtmlHelper htmlHelper, string controllerName, IEnumerable<ClienteEnderecoViewModel> models)
            : base(htmlHelper, controllerName, models, "EnderecoId", "ClienteEndereco")
        {
        }

        protected override void Columns(GridColumnFactory<ClienteEnderecoViewModel> configurator)
        {
            base.Columns(configurator);
            configurator.Bound(endereco => endereco.EnderecoCobranca);
            configurator.Bound(endereco => endereco.EnderecoEntrega);
        }
    }
}